const { findAboutDao, updateAboutDao } = require("../dao/aboutDao");
const { formatResponse } = require("../utils/tool");


//获取关于我数据
module.exports.findAboutService = async function () {
  const {dataValues} = await findAboutDao();
  return formatResponse(0, "", dataValues);
}

// 更该关于我数据
module.exports.updateAboutService = async function (newAboutInfo) {
  const {dataValues} = await updateAboutDao(newAboutInfo);
  return dataValues;
}